* {
    box-sizing: border-box;
}

@keyframes cont {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

main {
    animation: cont 0.5s 1s linear backwards;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: Segoe UI Emoji;
}

div.nav {
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    border: none;
    border-bottom: 2px solid black;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(food3.jpg);
}

div.ul li {
    top: 0px;
    margin-right: 20px;
    list-style-type: none;
}

ul.navlist {
    display: flex;
}

ul.navlist>li {
    flex-flow: row nowrap;
}

a {
    text-decoration: none;
}

a.A,
a.B,
a.C,
a.D {
    margin: 0 20px;
}

 
a.B,
a.A,
a.C,
a.D{
    color: white;
    font-size: 17px;
    transition-property: all;
    transition-duration: 0.1s;
}

a.A:hover,
a.B:hover,
a.C:hover,
a.D:hover {
    font-size: 19px;
    font-weight: bolder;
    color: red;
}


button.btn1,
button.btn2 {
    margin: 10px 10px 0;
}

button.btn1 {
    font-size: 15px;
    color: white;
    height: 42px;
    width: 120px;
    border: none;
    border-radius: 8px;
    background: red;
    cursor: pointer;
    transition-property: all;
    transition-duration: 0.3s;
}

button.btn1:hover {
    border: 1px solid white;
    background: transparent;
    backdrop-filter: blur(100px);
    font-size: 20px;
    font-weight: bolder;
}

button.btn2 {
    height: 42px;
    width: 120px;
    border: 1px solid white;
    border-radius: 8px;
    background: transparent;
    backdrop-filter: blur(100px);
    cursor: pointer;
    color: white;
    font-size: 15px;
    transition-property: all;
    transition-duration: 0.3s;
}

button.btn2:hover {
    border: none;
    background: red;
    font-size: 20px;
    font-weight: bolder;
}

.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

section {
    background: url(https://preview.redd.j);
    background-size: cover;
    height: calc(100vh-80px);
}

@media (max-width:952px) {
    ul.navlist li a {
        font-size: 25px;
    }
}

@media (max-width:1100px) {
    .checkbtn {
        display: block;
    }

    ul.navlist {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #000000b6;
        top: 34px;
        left: -100%;
        text-align: center;
        display: block;
        margin: 50px 0;
        transition: all 0.4s;
    }

    ul.navlist li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    ul.navlist li a {
        font-size: 30px;
        transition: all;
    }

    a.A:hover,
    a.B:hover,
    a.C:hover,
    a.D:hover {
        background: none;
        color: red;
        font-size: 35px;

    }

    #check:checked~ul {
        left: 0;
    }
}

.menuicon {
    margin: 25px 0 0 25px;
}

p.z {
    font-size: 45px;
    font-weight: bolder;
    text-align: center;
}

p.s {
    font-size: 60px;
    text-align: center;
    font-family: Segoe UI black;
}

div.signup1 {
    width: 80%;
    background: #EAECEB;
    box-shadow: 0 0 20px 0 black;
    height: auto;
    margin: 0 auto 30px;
    border: none;
    border-radius: 20px;
    padding: 2px;
}

div.signup2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

p.input {
    flex-grow: 1;
    margin: 20px;
    width: 45%;
    font-size: 20px;
}

input {
    flex-grow: 2;
    height: 55px;
    width: 100%;
    font-size: 25px;
    border: none;
    outline: none;
    border-radius: 10px;
}

p.button {
    margin: 30px;
}

button {
    height: 60px;
    width: 250px;
    font-size: 25px;
    border: 1px solid black;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.5s;
}

button:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(food3.jpg);
    color: white;
}

@media (max-width:880px) {
    div.signup1 {
        width: 90%;
    }
}

input[type="email"]:invalid {
    color: red;

}